package com.unittec.zk.provider.auth.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.unittec.zk.provider.auth.entity.SysDic;

/**
 * @author Jason
 * @description 数据字典Mapper
 * @date 2019/11/07
 */
public interface SysDicMapper extends BaseMapper<SysDic> {

    /**
     * 数据字典主表分页
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<Map<String, Object>> dicList(IPage<SysDic> page, @Param(Constants.WRAPPER) QueryWrapper<SysDic> queryWrapper);

    /**
     * 数据字典主表不分页
     *
     * @param queryWrapper
     * @return
     */
    List<Map<String, Object>> dicListNo(@Param(Constants.WRAPPER) QueryWrapper<SysDic> queryWrapper);

}
